﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1">
    <title>无标题页 </title>
    <link type="text/css" rel="Stylesheet" href="/AjaxCMS/css/channel.css" />
    <script type="text/javascript" src="/js/jquery.js"></script>
    <script type="text/javascript">
        var city_dw = 1; var cityname_wang; var citype = 0; //citype 影院类型 0 全部 1 在线 2 点子码线下 3,不合作影院
        if (typeof (getCookie("ztyingonde")) != "undefined" && getCookie("ztyingonde") != null && getCookie("ztyingonde") != 0) {
            city_dw = getCookie("ztyingonde");
        }

        function bindhot(cityidliu) {
            //alert("cityidliu=" + cityidliu);
            $("#hotlist").html('<img src="/Buyticket/images/loading1.gif" width="16" height="16" />数据正在加载......').load("/AjaxCMS/ajax_filmhot_new" + cityidliu + ".html", function (data) {
                $("#hotlist").html(data);
            }
	        );
        }

        function bindrepList(cityidliu) {
            //        	alert(cityidliu);
            $("#ltDistrict").html('<img src="/Buyticket/images/loading1.gif" width="16" height="16" />数据正在加载......').load("/AjaxCMS/Ajax_area_new" + cityidliu + ".html", function (data) {
                $("#ltDistrict").html(data);
            }
	        );

            loadCimemaShowL(cityidliu, -1, 0, 0);  //当前城市对应的区汇总
        }

        function bindcinematype(cityidliu, distid) {
            //alert(cityidliu);
            //alert(distid);

            //$("#ltcinematype").html('<img src="/Buyticket/images/loading1.gif" width="16" height="16" />数据正在加载......').load("/AjaxCMS/Ajax_citype_new" + cityidliu + "_" + distid + ".html");
        }
        function loadCimemaShowLbycitype(cityidliu, distid, citype) {

            for (var i = 0; i <= 3; i++) {
                $("#citype" + i).removeClass("sel-area-on");
            }
            $("#citype" + citype).addClass("sel-area-on");
            if (citype == 1) {
                //                $("#NoCimemaShow_list").hide();
                $("#EcodeCimemaShow_list").hide();
                $("#CimemaShow_list").show();

            }
            if (citype == 2) {
                //               $("#NoCimemaShow_list").hide();
                $("#EcodeCimemaShow_list").show();
                $("#CimemaShow_list").hide();

            }
            if (citype == 3) {
                //               $("#NoCimemaShow_list").show();
                $("#EcodeCimemaShow_list").hide();
                $("#CimemaShow_list").hide();

            }
            if (citype == 0) {
                //               $("#NoCimemaShow_list").show();
                $("#EcodeCimemaShow_list").show();
                $("#CimemaShow_list").show();

            }
        }

        //cityidliu:城市Id
        //distid:区划Id
        //defid:区划链接Id
        //areacount:区划总个数
        function loadCimemaShowL(cityidliu, distid, defid, areacount) {
            bindcinematype(cityidliu, distid);
            //            $("#NoCimemaShow_list").show();   
            $("#EcodeCimemaShow_list").show();
            $("#CimemaShow_list").show();
            for (var i = 0; i <= areacount; i++) {
                $("#a_" + i).removeClass("sel-area-on");
            }
            $("#a_" + defid).addClass("sel-area-on");
            $("#CimemaShow_list").html('<div style="width:170px;margin:0 auto;"><img src="/Buyticket/images/loading1.gif" class="ml10" /> 正在加载......</div>').load("/AjaxCMS/ajax_NewCinema"+cityidliu+"_"+distid + ".html");
            //$("#EcodeCimemaShow_list").load("/AjaxCMS/ajax_NewEcodeCinema.html?cityid=" + cityidliu + "&area=" + distid);
            
        }

        function loadCityName(cityidliu) {
            //alert("abc=" + cityidliu);
            $("#searchlistcity a").each(function () {
                var spanid = $(this).attr("id");
                if (spanid == cityidliu) {
                    cityname_wang = $(this).text();
                    $("#cityname_wangli").text(cityname_wang);
                }
            });
        }
    </script>
</head>
<body>
    <form name="form1" method="post" id="form1">
    <div class="cait">
    </div>
    <div class="channelmain">
        <div class="c-col-l fl">
            <!--选择begin-->
            <div class="selcenemabox">
                <div class="selcenema">
                    <em></em>
                    <h3>
                        选择一家熟悉的影院开始你的购票</h3>
                    <div class="mt10 selcity">
                        <s>购票城市：</s>
                        <div class="sel-inputnew sel-citynew">
                            <s id="cityname_wangli">合肥</s>
                            <div class="citysel selboxA none" id="searchlistcity" style="top: 23px;">
                                <style>
                                    .selboxA
                                    {
                                        position: absolute;
                                        top: 23px;
                                        z-index: 5000;
                                    }
                                    .selboxA td, .selboxA th
                                    {
                                        width: auto;
                                        line-height: 1.67em;
                                    }
                                    .selboxA td a, .selboxA th a
                                    {
                                        white-space: nowrap;
                                        padding: 0px 3px;
                                        text-align: center;
                                        float: left;
                                        margin: 0px;
                                        color: #009af2;
                                    }
                                    .selboxA th a
                                    {
                                        color: #369;
                                        margin-right: 5px;
                                    }
                                    .selboxA td a:hover, .selboxA th a:hover
                                    {
                                        background: #74a5d6;
                                        text-decoration: none;
                                        color: #fff;
                                        z-index: 5000;
                                        background-image: none;
                                    }
                                    .selcitybox a:link, .selcitybox a:visited
                                    {
                                        color: #009af2;
                                    }
                                    .selcenema em
                                    {
                                        background: none;
                                        position: relative;
                                        bottom: 0px;
                                        height: auto;
                                        left: 0px;
                                        width: auto;
                                    }
                                </style>
                                <table width="390" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <th>

    <a id="1" href="javascript:;">合肥</a>
    <a id="2" href="javascript:;">芜湖</a>
    <a id="3" href="javascript:;">安庆</a>
    <a id="4" href="javascript:;">马鞍山</a>

                                        </th>
                                    </tr>
                                    <tr>
                                        <td>
    <a id="1" href="javascript:;">合肥</a>
    <a id="2" href="javascript:;">芜湖</a>
    <a id="3" href="javascript:;">安庆</a>
    <a id="4" href="javascript:;">马鞍山</a>
    <a id="5" href="javascript:;">六安</a>
    <a id="6" href="javascript:;">蚌埠</a>
    <a id="7" href="javascript:;">淮南</a>
    <a id="8" href="javascript:;">淮北</a>
    <a id="9" href="javascript:;">铜陵</a>
    <a id="10" href="javascript:;">黄山</a>
    <a id="11" href="javascript:;">滁州</a>
    <a id="12" href="javascript:;">阜阳</a>
    <a id="13" href="javascript:;">宿州</a>
    <a id="14" href="javascript:;">巢湖</a>
    <a id="15" href="javascript:;">毫州</a>
    <a id="16" href="javascript:;">池州</a>
    <a id="17" href="javascript:;">宣城</a>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                    </div>
                    <div id="ltDistrict">
                    </div>
                    <div id="ltcinematype">
                    </div>
                </div>
            </div>
            <!--选择end-->
            <!--一个影院begin-->
            <div id="CimemaShow_list">
            </div>
            <div id="EcodeCimemaShow_list">
            </div>
        </div>
        <div id="hotlist">
        </div>
        <div class="clear">
        </div>
    </div>
    </form>
</body>
</html>
<script language="javascript">
    loadCityName(city_dw);
    //alert('city');
    bindrepList(city_dw);
    //alert('city2');
    bindhot(city_dw);
    //alert('city3');
    $("#searchlistcity a").click(function () {
        city_dw = $(this).attr("id");
        loadCityName(city_dw);
        bindrepList(city_dw);
    })
    $(".sel-inputnew").each(function () {
        $(this).mousemove(function () {
            $(this).children(".selbox").show();
            $(this).children(".selboxA").show();
        }).mouseout(function () {
            $(this).children(".selbox").hide();
            $(this).children(".selboxA").hide();
        })
    })

    $("#sel-area>a").click(function () {
        $(this).addClass("sel-area-on").siblings().removeClass("sel-area-on");
    })
</script>

